import request from "@/utils/request";

/* 前台菜单服务 获取菜单  */
export function queryListRequest(data) {
  return request({
    url: "/management-admin/sysFrontMenu/list",
    method: "post",
    data,
  });
}

//新增菜单
export function addMenuRequest(data) {
  return request({
    url: "/management-admin/sysFrontMenu/add",
    method: "post",
    data,
  });
}

//编辑菜单
export function editMenuRequest(data) {
  return request({
    url: "/management-admin/sysFrontMenu/edit",
    method: "post",
    data,
  });
}

//删除菜单
export function deleteMenuRequest(id) {
  return request({
    url: "/management-admin/sysFrontMenu/delete?id=" + id,
    method: "get",
  });
}
